package com.sh.data.engine.application.model.request.normalization;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author boyue.wjl
 */
@Data
@Schema
public class DepartmentRequest {

    @Schema(description = "编辑部门时传id")
    private Long id;

    @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank
    private String name;

    @Schema(description = "上级id 没有传0", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull
    private Long pid;
}
